<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* 验证邮箱
            邮箱以这些结束.com|.cn|.sina|.net
        */
        // 以数字 字母开头 + @ + 邮箱的后缀名
        var reg = /^[0-9a-z]{8,}@(qq|163)\.(com|cn|sina|net)$/

        var str = 'va4s3v147@qq.com'
        
        console.log(reg.test(str))
    </script>
</body>
</html>